def count_characters(s):
    char_count = {}

    for char in s:
        if char in char_count:
            char_count[char] += 1
        else:
            char_count[char] = 1

    max_count = 0
    max_char = ''
    for char, count in char_count.items():
        if count > max_count:
            max_count = count
            max_char = char

    return max_char, max_count, char_count


s = input("请输入字符串：")
max_char, max_count, char_count = count_characters(s)

print("出现次数最多的字符：", max_char)
print("出现次数最多的字符的出现次数：", max_count)
print("其他字符出现的次数：")
for char, count in char_count.items():
    print(char, ":", count)

